import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listAnswer(query) {
  return request({
    url: '/comprehensive/answer/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getAnswer(id) {
  return request({
    url: '/comprehensive/answer/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addAnswer(data) {
  return request({
    url: '/comprehensive/answer/add',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateAnswer(data) {
  return request({
    url: '/comprehensive/answer/update',
    method: 'post',
    data: data
  })
}

// 删除【请填写功能名称】
export function delAnswer(id) {
  return request({
    url: '/comprehensive/answer/' + id,
    method: 'post'
  })
}
export function queryAnswerList(data) {
  return request({
    url: '/comprehensive/answer/queryAnswerList',
    method: 'post',
    data: data
  })
}


// 查询【请填写功能名称】详细
export function getQuestionnaire(data) {
  return request({
    url: '/comprehensive/answer/getQuestionnaire',
    method: 'post',
    data: data
  })
}


export function ratioScore(data) {
  return request({
    url: '/comprehensive/answer/ratioScore',
    method: 'post',
    data: data
  })
}

